{{template "header_start" .}}
{{ template "global" .}}
<link href="../static/css/index/index.css" rel="stylesheet">
<script type="text/javascript" src="../static/js/index/index.js"></script>
{{ template "header_end" . }}

{{ template "nav" .}}

<div class="container keep-top">

<div class="filenav ul-horizontal">

{{$siteroot := .Siteroot }}
<ul class="js-nav">
{{ $i := 1 }}
{{range $filename := .D.Body.allfiles }}
<li><a class="test{{$i}}" href="#">{{$filename.Name}}</a></li>
{{end}}
</ul>
</div>

<div id="item-content" class="item-common no-display">
<header class="title"> 
<h4 class="js-title jk-text-info" > </h4>
</header>
<button type="button" class="close close-up js-close">X</button>
<br class="clear" />    
<section class="js-content content"> </section>
</div>

<p> </p>

<hr class="red-line" />
<div id="g-uploadfile">
<h4 class="jk-text-info">上传文件</h4>
<h6 class="jk-text-danger">(上传完成记得通知我啊，不然会没保存的)</h6>
<form name="uploadfile" method="post"  enctype="multipart/form-data" action="">
    <input type="file" name="upfile" ><br/>
    <button type="button" class="btn btn-middle btn-default" >提交</button>
</form>
</div>
<div id="g-uploadfile-test">
<h4 class="jk-text-info" >上传只收文件名测试</h4>
<div>
    <input type="file" name="filename">
    <button type="button" class="btn btn-middle js-add">添加</button><br/>
    <button type="button" class="btn btn-middle btn-info js-submit">提交</button>
</div>
</div>


<hr class="red-line" />

<div id="download">
    <ul>
        <li>可以下载这些文件(还在测试)：</li>
        {{range $downloadfiles := .D.Body.downloadfiles }}
        <li><a href="#">{{$downloadfiles.Name}}</a></li>
        {{ end }}
    </ul>
</div>

</div>
{{template "footer" .}}
